package chapter30;

import javax.swing.*;

public class JTabbedPaneTest extends JFrame {
	public static void main(String[] args) {
		JTabbedPaneTest frame = new JTabbedPaneTest();
		frame.setSize(400, 300);
		frame.setTitle("JTabbedPaneTest");
		frame.setVisible(true);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	
	public JTabbedPaneTest() {
		JTabbedPane pane = new JTabbedPane();
		
		pane.addTab("Tab 1", new JPanel());
		pane.addTab("Tab 2", new JPanel());
		pane.addTab("Tab 3", new JPanel());
		
		getContentPane().add(pane);
	}
}
